//
//  ZGEditViewController.m
//  扫码
//
//  Created by 鲍志刚 on 16/4/5.
//  Copyright © 2016年 鲍志刚. All rights reserved.
//

#import "ZGEditViewController.h"
#import "NetworkTools.h"

@interface ZGEditViewController ()
@property (weak, nonatomic) IBOutlet UITextField *startNumber;
@property (weak, nonatomic) IBOutlet UITextField *endNumber;

@end

@implementation ZGEditViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
 
}

#pragma mark - 删除

- (IBAction)deleteBtn:(id)sender {
    
    
    [[NetworkTools sharedTools] POST:@"SweepServlet?method=deleteNumber" parameters:@{@"startNumber":self.startNumber.text, @"endNumber":self.endNumber.text} progress:^(NSProgress * _Nonnull uploadProgress) {
        
    } success:^(NSURLSessionDataTask * _Nonnull task, id  _Nullable responseObject) {
        
        NSLog(@"%@",responseObject);
        
    } failure:^(NSURLSessionDataTask * _Nullable task, NSError * _Nonnull error) {
        
    }];
    
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
   
    
    
}


@end
